require("nvim-gps").setup()

_G.gps_location = function()
  local gps = require "nvim-gps"
  return gps.is_available() and gps.get_location() or ""
end
--local id = vim.api.nvim_create_augroup("plugin-gps", {
--  clear = true
--})
--function cb()
--  vim.wo.winbar = "%{%v:lua.gps_location()%}"
--end
--vim.api.nvim_create_autocmd({"BufWinEnter"}, {
--  pattern = {"*.py"},
--  callback = cb,  -- Or myvimfun
--  group = id,
--})
vim.opt.winbar = "%{%v:lua.gps_location()%}"
